package Demo01;

import java.io.FileNotFoundException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28463
 * Date: 2022—05—30
 * Time: 8:43
 */
class Person implements Cloneable{
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
public class Test01 {
    public static void func() {
        func();
    }
    public static void func2(int a) throws CloneNotSupportedException, FileNotFoundException {
        if(a == 0) {
            throw new CloneNotSupportedException("a==0");
        }
        if(a == 1) {
            throw new FileNotFoundException();
        }
    }


    public static void main4(String[] args) {
        int[] array = null;
        System.out.println(array.length);
        System.out.println("其它代码逻辑！");
    }
    public static void main(String[] args) throws FileNotFoundException, CloneNotSupportedException {
        func2(0);
    }
    public static void main3(String[] args) {
        func();
    }
    public static void main2(String[] args) throws CloneNotSupportedException {
        Person person =new Person();
        Person person1 =(Person) person.clone();
    }
    public static void main1(String[] args) {
 /*       System.out.println(10/0);*/
        int[] array = null;
        System.out.println(array.length);

    }
}
